Skip to content

[Fix] 세모피드 image_url이 따옴표("")와 함께 저장되는 버그 수정#150

Merged
caseBread merged 2 commits into
developfrom
fix/#149-semofeed-image-url-quote
May 29, 2026
Merged

[Fix] 세모피드 image_url이 따옴표("")와 함께 저장되는 버그 수정#150
caseBread merged 2 commits into
developfrom
fix/#149-semofeed-image-url-quote

Conversation

@pooreumjung

Copy link
Copy Markdown
Member

🧾 요약

  • @RequestBody String 대신 DTO를 사용해 image_url이 따옴표("")와 함께
    저장되는 버그 수정

🔗 이슈

✨ 변경 내용

  • SemoFeedCreateRequest DTO 추가 (imageUrl 필드, @NotBlank 검증)
  • SemoFeedController, SemoFeedControllerDocs create 메서드 파라미터를
    StringSemoFeedCreateRequest로 교체

✅ 확인

  • 빌드 OK
  • 테스트 OK

⚠️ 프론트 변경 필요
요청 body 형식이 변경되므로 프론트와 배포 타이밍을 맞춰야 합니다.

  • 변경 전: "https://..." (raw string)
  • 변경 후: { "imageUrl": "https://..." } (JSON object)

@pooreumjung pooreumjung self-assigned this May 28, 2026
@pooreumjung pooreumjung added the bug Something isn't working label May 28, 2026
@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a2a44cb4-8719-4956-ab46-0f104951b404

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/#149-semofeed-image-url-quote

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 SemoFeed 생성 시 image_url이 따옴표와 함께 저장되는 버그를 수정합니다. Jackson의 JSON 파싱 기능을 올바르게 활용하기 위해 DTO를 도입하였으며, 이로 인해 프론트엔드에서 보내는 요청 본문 형식이 raw string에서 JSON 객체로 변경되어야 합니다.

Highlights

  • DTO 도입을 통한 데이터 바인딩 수정: 기존의 @RequestBody String 방식에서 발생하는 image_url 따옴표 포함 문제를 해결하기 위해 SemoFeedCreateRequest DTO를 도입했습니다.
  • 컨트롤러 및 API 문서 업데이트: SemoFeedController와 SemoFeedControllerDocs의 create 메서드 파라미터를 DTO로 교체하여 요청 본문 처리 방식을 표준화했습니다.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the raw @RequestBody String with a structured SemoFeedCreateRequest DTO in the SemoFeedController's create endpoint to allow Jackson to correctly parse and strip quotes from the imageUrl JSON string. The reviewer suggests improving the new DTO by adding @URL validation to ensure the image URL format is correct, adding Swagger @Schema annotations for better API documentation, and fixing a minor spacing issue in the validation error message.

@caseBread
caseBread merged commit fd64c90 into develop May 29, 2026
3 checks passed
@pooreumjung pooreumjung changed the title Fix/#149 semofeed image url quote [Fix] 세모피드 image_url이 따옴표("")와 함께 저장되는 버그 수정 May 29, 2026
@howooyeon
howooyeon deleted the fix/#149-semofeed-image-url-quote branch June 3, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] semofeed image_url이 DB에 따옴표("")로 감싸져 저장되는 버그 수정

2 participants